package com.fortune.dao;

import com.fortune.common.acl.PageQuery;
import com.fortune.entity.MAcl;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MAclMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(MAcl record);

    int insertSelective(MAcl record);

    MAcl selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(MAcl record);

    int updateByPrimaryKey(MAcl record);

    int countByAclModuleId(@Param("aclModuleId") int aclModuleId);

    List<MAcl> getPageByAclModuleId(@Param("aclModuleId") int aclModuleId, @Param("page") PageQuery page);

    int countByNameAndAclModuleId(@Param("aclModuleId") int aclModuleId, @Param("name") String name, @Param("id") Integer id);

    List<MAcl> getAll();

    List<MAcl> getByIdList(@Param("idList") List<Integer> idList);

    List<MAcl> getByUrl(@Param("url") String url);
}